package com.soft.blog_project.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

@ApiModel(value="评论", description="返回评论信息")
public class Comment {
  @ApiModelProperty(value="评论ID")
  private long commentId;
  @ApiModelProperty(value="⽤户ID")
  private long userId;
  @ApiModelProperty(value="博客ID")
  private long blogId;
  @ApiModelProperty(value="评论内容")
  private String commentTxt;
  @ApiModelProperty(value="评论时间")
  private java.sql.Timestamp commentTime;


  public long getCommentId() {
    return commentId;
  }

  public void setCommentId(long commentId) {
    this.commentId = commentId;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public long getBlogId() {
    return blogId;
  }

  public void setBlogId(long blogId) {
    this.blogId = blogId;
  }


  public String getCommentTxt() {
    return commentTxt;
  }

  public void setCommentTxt(String commentTxt) {
    this.commentTxt = commentTxt;
  }


  public java.sql.Timestamp getCommentTime() {
    return commentTime;
  }

  public void setCommentTime(java.sql.Timestamp commentTime) {
    this.commentTime = commentTime;
  }


  @Override
  public String toString() {
    return "Comment{" +
            "commentId=" + commentId +
            ", userId=" + userId +
            ", blogId=" + blogId +
            ", commentTxt='" + commentTxt + '\'' +
            ", commentTime=" + commentTime +
            '}';
  }
}
